/*
Purpose: Calculate % of those 18-24 in same state (footnote of paper)
also age 13 (another footnote)
*/

use "data/raw/usa_00006", clear

keep if qbpl==0&year==2000&age==13
keep if bpl<=56 //wyoming, keeps those born in US

gen same_state = statefip==bpl

tab same_state [w=perwt]
tab bpl same_state [w=perwt], row

use "data/raw/usa_00006", clear

keep if qbpl==0&year==2009&age>=18&age<=24
keep if bpl<=56

gen same_state = statefip==bpl

tab same_state [w=perwt]